<?php
/*
 * @Author: your name
 * @Date: 2020-12-24 10:30:24
 * @LastEditTime: 2020-12-24 10:35:48
 * @LastEditors: Please set LastEditors
 * @Description: 客户端注册验证器
 * @FilePath: /special/application/api/validate/ClientRegisterValidate.php
 */
namespace app\api\validate;

use think\Validate;

class ClientRegisterValidate extends Validate
{
    protected $rule = [
        //网卡信息
        'networkcard' => 'require|array',
        //主机码
        'hostkey' => 'require|array',
        //主机硬件信息
        'host_info' => 'require|array',
    ];

    protected $scene = [
        'networkcard.require' => '缺少网卡信息',
        'hostkey.require' => '缺少主机码',
        'host_info.require' => '缺少主机硬件信息',
    ];
}
